<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/admin.css'); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/main.css'); ?>">
<script type="text/javascript" src="<?php echo $this->_webroot('servtools/jquery-1.3.2.min.js?v=1.3.2'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('skin/xheditor/xheditor.min.js?v=1.0.0-final'); ?>"></script>
<script type="text/javascript">

var introeditor;
$(function(){
	introeditor=$("#goods_intro").xheditor({skin:'vista',tools:"Cut,Copy,Paste,Pastetext,Separator,Blocktag,Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,SelectAll,Removeformat,Separator,Align,List,Outdent,Indent,Separator,Link,Unlink,Img,Table,Separator,Source,Fullscreen,About"});
});
</script>
<style>
td span {color:red;}
.green {color:green;}
.red {color:red;}
</style>
</head>
<body>

<div id="maincontent">
<psp:tags     htmlname='messagebox'  iconname='messagebox' />
	<div class="wrap">
	<div class="crumbs">当前位置 &gt;&gt; 商品管理 &gt;&gt; 修改商品</div>
        <hr />
	<div class="infobox">
<h3><span class="left">修改商品</span> <span style=" margin-right:15p;" class="right"><a href="<?php echo $this->_url('admin/goods/index');?>">商品列表</a>&nbsp;&nbsp;</span></h3>
    <div class="content2">
		<form action="<?php echo $this->_url('admin/goods/edit/'.$info['id']);?>" method="post">
		<table class="form-table">
		 <tbody>
			<tr>
				<td width="80px">商品状态：</td>
				<td><select name="data[lock_flg]">
					<option value="0" <?php if($info['lock_flg']==0){echo "selected";}?>>未锁定</option>
					<option value="1" <?php if($info['lock_flg']==1){echo "selected";}?>>已锁定</option>
				</select></td>
			</tr>
			<tr>
				<td>商品名称：</td>
				<td><input class="small-text" type="text" name="data[goods_name]" value="<?php echo $info['goods_name']; ?>" style="width:200px;" /></td>
			</tr>
			<tr>
				<td>商品简介：</td>
				<td><textarea name="data[goods_intro]" id="goods_intro" cols="100" rows="15"><?php echo $info['goods_intro'];?></textarea></td>
			</tr>
			<tr>
				<input type="hidden" name="data[id]" value="<?php echo $info['id'];?>">
				<input type="hidden" name="data[shop_id]" value="<?php echo $info['shop_id'];?>">
				<td colspan="2"><span class="button-container"><input class="regular-button" type="submit" name="submit" value="修改商品" /></span></td>
			</tr>
		  </tbody>
		</table>
		</form>	
	

		
	  </div>
	 </div>
	</div>
</div>
</body>
</html>